package com.example.demoyyy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

// 导入日志模块,记录一些信息,打印在控制台
@Slf4j
@ServletComponentScan // 扫描过滤器,注册进spring
@SpringBootApplication // @注解,装饰器 , springboot的类
@EnableTransactionManagement
public class DemoYyyApplication {
    public static void main(String[] args) {
        SpringApplication.run(DemoYyyApplication.class, args);
        log.info("控制台打印一句话,代表项目运行起来了");
        log.info("111111");
        log.info("222222");
        log.info("333333");
    }
}